<%@ page language="java" import="java.util.*,java.text.*,yy.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@include file="checkLogin.jsp" %> 
<%String xuehao=request.getParameter("xuehao");
Long xh=Long.parseLong(xuehao);
Long  number=(Long)session.getAttribute("xuehao");
if(xh!=number){
out.print("<script>alert('您只能查询自己成绩!');</script>");
response.sendRedirect("chakan.jsp");
}
else{
MySqlStudentDao my=new MySqlStudentDao();
List<Student> l=my.selectscore(xh);
for(Student s:l){
out.print(s.getKaoshiriqi());%><br/>
<%out.print(s.getScore());%><br/>
<% }
}
 %>
</body>
</html>